import Vue from 'vue'
import Router from 'vue-router'
import Login from "../components/Login";
import MainPage from "../components/MainPage";
import Flight from "../components/Flight";
import Ticket from "../components/Ticket";
import Indent from "../components/Indent";
import Refund from "../components/Refund";
import Plane from "../components/Plane";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },{
      path: '/mainPage',
      name:'MainPage',
      component: MainPage,
      children:[
        {
          path:'/flight',
          component:Flight
        },   {
          path:'/ticket',
          component:Ticket
        },{
          path:'/order',
          component:Indent
        },
        {
          path:'/refund',
          component:Refund
        },{
          path:'/plane',
          component: Plane
        }
      ],
    }
  ]
})
